package cn.ad.entity;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.math.BigDecimal;

@Alias("accountTransferRecords")
public class AccountTransferRecords extends PO implements Serializable {

	private static final long serialVersionUID = 6873599645430901507L;

	/**
	 *1 广告主
	 */
	public static final int FROM_TYPE_ADVERTISER = 1;
	/**
	 *2代理商
	 */
	public static final int FROM_TYPE_AGENCY = 2;
	/**
	 *3 系统平台
	 */
	public static final int FROM_TYPE_PLATFORM = 3;
	/**
	 *1 广告主
	 */
	public static final int TO_TYPE_ADVERTISER = 1;
	/**
	 *2代理商
	 */
	public static final int TO_TYPE_AGENCY = 2;
	/**
	 *3 系统平台
	 */
	public static final int TO_TYPE_PLATFORM = 3;

	/**
	 *1 充值
	 */
	public static final int DEAL_TYPE_INTO = 1;
	/**
	 *2 转账
	 */
	public static final int DEAL_TYPE_OUT = 2;




	/**
	 *当from_type=1时描述为广告主标识， 对应advertiser.id，\n当from_type=2 时描述为代理商标识，
	 * 对应agency.id，\n当from_type=3 时描述为平台系统标识，此时值设置为0
	 */
	private int fromId;
	/**
	 *交易资金来源方账户类型 1 广告主 2代理商 3 系统平台
	 */
	private int fromType;
	/**
	 *当to_type=1时描述为广告主标识，对应advertiser.id，\n当to_type=2 时描述为代理商标识，
	 * 对应agency.id，\n当to_type=3 时描述为平台系统标识，此时值设置为0
	 */
	private int toId;
	/**
	 *交易资金流入方账户类型 1 广告主 2代理商 3 系统平台
	 */
	private int toType;
	/**
	 *交易类型 1 充值 2 转账
	 */
	private int dealType;
	/**
	 *操作者用户标识，对应db_admin.tb_users.id
	 */
	private int creator;
	/**
	 *交易金额
	 */
	private BigDecimal amount;

	/**
	 *备注信息
	 */
	private String description;

	/**
	 *流水记录真实操作的金额
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private String createTime;

	public int getFromId() {
		return fromId;
	}

	public void setFromId(int fromId) {
		this.fromId = fromId;
	}

	public int getFromType() {
		return fromType;
	}

	public void setFromType(int fromType) {
		this.fromType = fromType;
	}

	public int getToId() {
		return toId;
	}

	public void setToId(int toId) {
		this.toId = toId;
	}

	public int getToType() {
		return toType;
	}

	public void setToType(int toType) {
		this.toType = toType;
	}

	public int getDealType() {
		return dealType;
	}

	public void setDealType(int dealType) {
		this.dealType = dealType;
	}

	public int getCreator() {
		return creator;
	}

	public void setCreator(int creator) {
		this.creator = creator;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
}
